<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=utf-8"%>
<%@ taglib prefix="pm" uri="http://www.keystudio.com/tags/premission"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<div class="pageHeader">
	<form rel="pagerForm" method="post" action="user/search" onsubmit="return dwzSearch(this, 'dialog');">
		<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="${user.everyPage}" />
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>登录名:</label>
				<input class="textInput" name="groupname" value="" type="text">
			</li>
			<li>
				<label>姓名:</label>
				<input class="textInput" name="groupcode" value="" type="text">
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">

	<table class="table" layoutH="118" targetType="dialog" width="100%">
		<thead>
			<tr>
				<th>ID</th>
				<th>登录名</th>
				<th>姓名</th>
				<th></th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${list}" var="item" varStatus="status">
			<tr>
				<td>${item.id }</td>
				<td>${item.loginName }</td>
				<td>${item.name }</td>
				<td><a class="btnSelect" href="javascript:$.bringBack({userid:'${ item.id}', username:'${item.name }',loginname:'${item.loginName }'})" title="查找带回">选择</a></td>
			</tr>
		</c:forEach>
		</tbody>
	</table>

	<div class="panelBar">
		<div class="pages">
			<span>每页</span>
			<select name="numPerPage" onchange="dwzPageBreak({targetType:dialog, numPerPage:'${user.everyPage }'})">
				<option value="10" selected="selected">10</option>
				<option value="20">20</option>
				<option value="50">50</option>
				<option value="100">100</option>
			</select>
			<span>条，共${user.totalCount}条</span>
		</div>
		<div class="pagination" targetType="dialog" totalCount="${user.totalCount}" numPerPage="${user.everyPage }" pageNumShown="1" currentPage="${user.pageNum }"></div>
	</div>
</div>